<#include "/common/common.ftl">
<form id="detailForm" method="post" dojoType="dijit.form.Form">
	<div class="small-form-layout">
		<div class="cell">
			<div class="label">
				<label> 菜单代码<@splitor/>
				</label>
			</div>
			<div class="content">
				<input name="menu.id" dojoType="dijit.form.ValidationTextBox"
				       class="small" required="true" value="${menu.id!}" readonly="true"
				       invalidMessage="只能是英文字母或数字" regExp="^\w+$" id="id"/>
			</div>
		</div>
		<div class="cell">
			<div class="label">
				<label>
					菜单名称<@splitor/>
				</label>
			</div>
			<div class="content">
				<input name="menu.name" dojoType="dijit.form.ValidationTextBox"
				       value="${menu.name!}" type="text" class="normal" required="true" id="name"/>
			</div>
		</div>
		<div class="cell">
			<div class="label">
				<label>
					图标<@splitor/>
				</label>
			</div>
			<div class="content">
				<input name="menu.icon" dojoType="dijit.form.TextBox"
				       value="${menu.icon!}" type="text" class="normal" id="icon"/>
			</div>
		</div>
		<div class="cell">
			<div class="label">
				<label>
					访问地址<@splitor/>
				</label>
			</div>
			<div class="content">
				<input name="menu.url" dojoType="dijit.form.TextBox"
				       value="${menu.url!}" type="text" class="long" id="url"/>
			</div>
		</div>
		<div class="cell">
			<div class="label">
				<label>
					显示顺序<@splitor/>
				</label>
			</div>
			<div class="content">
				<input name="menu.dispOrder" dojoType="dijit.form.TextBox"
				       value="${menu.dispOrder!}" type="text" class="small" id="dispOrder"/>
			</div>
		</div>
		<div class="cell-single-line">
			<div class="label">
				<label>
					备注<@splitor/>
				</label>
			</div>
			<div class="content">
				<textarea trim="true" name="menu.info" maxLength="100" colspan="3" rows="2"
				          dojoType="dijit.form.SimpleTextarea" id="info" style="width:250px;">
				${menu.info!}
				</textarea>
			</div>
		</div>
	</div>
	<div class="clear"></div>
	<div class="button-bar">
		<div type="button" onClick="btnSaveClick" dojoType="dijit.form.Button" id="btnSave">
			保存
		</div>
		<div type="reset" dojoType="dijit.form.Button" id="btnClear">
			清空
		</div>
		<div type="button" onclick="btnCloseClick" dojoType="dijit.form.Button" id="btnClose">
			关闭
		</div>
	</div>
</form>
